{
  "properties" : { },
  "id" : "06c91119e6884a099c90977c3e198c44",
  "script" : null,
  "groupId" : "f4c594365356469f98b3db6bcc612d24",
  "name" : "user",
  "createTime" : null,
  "updateTime" : 1736688885451,
  "lock" : null,
  "createBy" : null,
  "updateBy" : "可辉",
  "path" : "user",
  "method" : "GET",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"code\": 200,\n    \"msg\": \"success\",\n    \"data\": [\n        {\n            \"value\": 1,\n            \"label\": \"超管\"\n        },\n        {\n            \"value\": 2,\n            \"label\": \"游客\"\n        }\n    ]\n}",
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
import response;
import com.gitee.fastmybatis.core.query.Query;
import 'com.wiwf.model.mapper.admin.dao.SysUnitMapper' as sysUnitMapper;
import 'com.wiwf.model.mapper.admin.dao.SysRoleMapper' as sysRoleMapper;

var query = new Query();
var units = sysUnitMapper.listMap(["unit_id as value", "unit_name as label"], query);
var roles = sysRoleMapper.listMap(["role_id as value", "role_name as label"], query);

var params = {
    units: units, roles: roles
};
var url = '/page/system/user.html';

return response.ftl(params,url)